<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="Jsday01.css">
</head>
<body>
	<!-- JavaScript使用方法1：通过script标签，直接将js代码嵌入到页面上 -->
	<script type="text/javascript">
		document.write('js里的内容1.<br>')
	</script>
	<h2>这是页面的内容</h2>
	<!-- JavaScript使用方法2：通过script标签的src属性引入
	一个外部的js文件 推荐使用！ -->
	<h2>js例子1：把一个五位的数分解出各个位上的数</h2>
 <div id="demo1">
  <div>
   <label>请输入数字：</label>
   <input type="text" name="num1" id="num1">
  </div>
  <div id="demo1ButDiv">
   <button onclick="fenjie()">分解</button>
  </div>
  <div class="demo1SpanDiv">
   <span>万</span>
   <span>千</span>
   <span>百</span>
   <span>十</span>
   <span>个</span>
  </div>
  <div class="demo1SpanDiv">
   <span id="wan"></span>
   <span id="qian"></span>
   <span id="bai"></span>
   <span id="shi"></span>
   <span id="ge"></span>
  </div>  
 </div>
		
	
	<script type="text/javascript" src="Jsday01.js"></script>	
</body>
</html>